package cn.skyquant.quant4j.service.boot.model.account;


import cn.skyquant.quant4j.api.enums.BorkerType;
import cn.skyquant.quant4j.service.boot.model.authority.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface AccountRepository extends CrudRepository<Account, Integer> {
    List<Account> findByUser(User user);
    Optional<Account> findByCodeAndBorkerType(String code, BorkerType borkerType);
}
